ig.module(

    'game.entities.moveable'

).requires(

    'impact.entity'

).defines(function(){
    
    /*
        Make all moveable entities extend it!!     
    */
    
    Moveable = ig.Entity.extend({
        
        movement: null,
       
        init: function( x, y, settings ){
            this.parent( x, y, settings );
            
            window.console.log( this.moveclass );
            
            this.movement = new (this.moveclass)( this );
        },
        
        update: function(){
            this.movement.updatePosition();
            this.parent();
            
            //TODO: check for leaving screen
        },
        kill: function(){
            ig.game.showInfo();
            this.parent();
        }
    });
    
});